-- GENERATED SPELL FOR [Crystalweb Spitter] --


function spell0_29412(pUnit, Event) --@Crystal Spike,n/a--
pUnit:FullCastSpellOnTarget(57616,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29412', 641, 1)
end

function spell1_29412(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(12023,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29412', 5333, 1)
end

function Sorts_29412(pUnit, Event)
local choix_sorts_29412 = math.random(0, 1)
if choix_sorts_29412 == 0 then
pUnit:RegisterEvent('spell0_29412', 1, 1)
end
if choix_sorts_29412 == 1 then
pUnit:RegisterEvent('spell1_29412', 1, 1)
end
end

function mob29412_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29412', math.random(1500, 3000), 1)
end

function mob29412_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29412_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29412_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29412, 1, 'mob29412_Action')
RegisterUnitEvent(29412, 2, 'mob29412_Leave')
RegisterUnitEvent(29412, 3, 'mob29412_Kill')
RegisterUnitEvent(29412, 4, 'mob29412_Die')
